﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace TFSCodeReviewHelper
{
    public class AssetChange : INotifyPropertyChanged
    {
        public int Number;
        public DateTime Date;
        public int ChangesSincePerviousChange;

        private DifferenceParticiaption _DifferenceParticipation;
        public DifferenceParticiaption DifferenceParticiaption
        {
            get { return _DifferenceParticipation; }
            set
            {
                _DifferenceParticipation = value;
                OnPropertyChanged("DifferenceParticiaption");
            }
        }

        public AssetChange(int number, int changesSincePreviousChange, DateTime date)
        {
            Number = number;
            ChangesSincePerviousChange = changesSincePreviousChange;
            DifferenceParticiaption = DifferenceParticiaption.None;
            Date = date;
        }

        public event PropertyChangedEventHandler PropertyChanged;
        public void OnPropertyChanged(string propertyName)
        {
            if (null != PropertyChanged)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
